<?php 
/* SVN FILE: $Id$ */
/* AutoManage Test cases generated on: 2009-05-30 14:05:24 : 1243707744*/
App::import('Model', 'AutoManage');

class AutoManageTestCase extends CakeTestCase {
	var $AutoManage = null;
	var $fixtures = array('app.auto_manage');

	function startTest() {
		$this->AutoManage =& ClassRegistry::init('AutoManage');
	}

	function testAutoManageInstance() {
		$this->assertTrue(is_a($this->AutoManage, 'AutoManage'));
	}

	function testAutoManageFind() {
		$this->AutoManage->recursive = -1;
		$results = $this->AutoManage->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('AutoManage' => array(
			'id'  => 1,
			'type'  => 1,
			'starttime'  => '2009-05-30 14:22:24',
			'endtime'  => '2009-05-30 14:22:24'
		));
		$this->assertEqual($results, $expected);
	}
}
?>